from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
import os

monday_page = '../html/monday.html'  #consider changing this to find the path if it changes
day_page = '../html/genrelist.html'
'''
    So at the moment, I'm using the template function to render the page, 
    for the presentation, 
    The next step is to actually render the page using information from the DB
'''
class GenrePage(webapp.RequestHandler):
    
    
    def get(self):
        
        path = os.path.join(os.path.dirname(__file__), day_page)
        self.response.out.write(template.render(path, ''))


application = webapp.WSGIApplication([('/genre', GenrePage)], debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
